Skip to content

Commit

Permalink
Merge pull request #341 from Pytal/fix/parse-leading-zeros
Browse files Browse the repository at this point in the history
Preserve stringified numbers with leading zeros
  • Loading branch information
perry-mitchell authored May 14, 2023
2 parents 63e0cff + 3b08bbc commit ae43cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/tools/dav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export function parseXML(xml: string): Promise<DAVResult> {
return new Promise(resolve => {
const result = xmlParser.parse(xml, {
arrayMode: false,
ignoreNameSpace: true
ignoreNameSpace: true,
parseTrueNumberOnly: true
// // We don't use the processors here as decoding is done manually
// // later on - decoding early would break some path checks.
// attrValueProcessor: val => decodeHTMLEntities(decodeURIComponent(val)),
Expand Down

0 comments on commit ae43cc1

Please sign in to comment.