-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sanitizing XML feeds * Adding missing things from previous commit and also support for image with more data * Fix RSS ignoring item.id (#105) * Change id to a guid This improves the tests. It also replicates #96. * Fix RSS ignoring item.id Fixes #96 with the code that KnicKnic suggested * Bump lodash from 4.17.11 to 4.17.15 (#106) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.11...4.17.15) Signed-off-by: dependabot[bot] <support@github.com> * Create FUNDING.yml * Bump handlebars from 4.1.2 to 4.5.3 (#110) Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md) - [Commits](handlebars-lang/handlebars.js@v4.1.2...v4.5.3) Signed-off-by: dependabot[bot] <support@github.com> * Item category for all feed types (#109) * Item category for all feed types. * updated version * use rimraf instead of rm -rf for dev purposes. * Bump to 4.1.0 * Bump acorn from 5.7.3 to 5.7.4 (#116) Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](acornjs/acorn@5.7.3...5.7.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: 🎸 add mandatory rss2 attributes on enclosure (#120) Co-authored-by: Decebal Dobrica <decebal.dobrica@tellimer.com> * fix: 🐛 atom link needs to point to self (#122) ✅ Closes: 113 Co-authored-by: Decebal Dobrica <decebal.dobrica@tellimer.com> * Update dependencies + Formatting + Add Comments (#123) * Update dependencies * Update formating * Add comments * Bump to 4.2.0 Co-authored-by: Karl Ravn <karl.ravn@schibsted.com> Co-authored-by: Joseph Dykstra <josephdykstra@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jean-Philippe Monette <jpmonette@users.noreply.github.com> Co-authored-by: mattimbrain <matti.kaivanto@m-brain.com> Co-authored-by: Jean-Philippe Monette <contact@jpmonette.net> Co-authored-by: Decebal Dobrica <decebal.dobrica@tellimer.com>
- Loading branch information
1 parent
73e42bd
commit 50ed093
Showing
8 changed files
with
63 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { sanitize } from "../utils"; | ||
|
||
describe("Sanitizing", () => { | ||
it("should sanitize & to &", () => { | ||
expect('&').toEqual(sanitize('&')); | ||
}); | ||
it("should handle multiple &", () => { | ||
expect('https://test.com/?page=1&size=3&length=10').toEqual(sanitize('https://test.com/?page=1&size=3&length=10')); | ||
}); | ||
|
||
it("should handle undefined", () => { | ||
var undefined; | ||
expect(sanitize(undefined)).toBeUndefined(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export function sanitize(url: String | undefined): String | undefined { | ||
if (typeof (url) === 'undefined') { | ||
return; | ||
} | ||
return url.replace(/&/g, '&'); | ||
} |