Skip to content

Commit dc34e74

Browse files
committed
chore!: attributeNamePrefix is by default '$'
1 parent dbef681 commit dc34e74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ object = {
4848
| Option | Description | Default value |
4949
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
5050
| trimValues | trim string values of an attribute or node | `true` |
51-
| attributeNamePrefix | prepend given string to attribute name for identification | `'@\_'` |
51+
| attributeNamePrefix | prepend given string to attribute name for identification | `'$'` |
5252
| attributesNodeName | (Valid name) Group all the attributes as properties of given name. | `false` |
5353
| ignoreAttributes | Ignore attributes to be parsed. | `false` |
5454
| ignoreNameSpace | Remove namespace string from tag and attribute names. | `false` |

src/traversable/defaultOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const decoder = {
88

99
export const defaultOptions = {
1010
trimValues: true,
11-
attributeNamePrefix: '@_',
11+
attributeNamePrefix: '$',
1212
attributesNodeName: false,
1313
ignoreAttributes: false,
1414
ignoreNameSpace: false,

0 commit comments

Comments
 (0)