提交依赖与构建产物
This commit is contained in:
14
node_modules/fast-xml-parser/src/v6/valueParsers/number.js
generated
vendored
Normal file
14
node_modules/fast-xml-parser/src/v6/valueParsers/number.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import toNumber from "strnum";
|
||||
|
||||
|
||||
export default class numParser{
|
||||
constructor(options){
|
||||
this.options = options;
|
||||
}
|
||||
parse(val){
|
||||
if (typeof val === 'string') {
|
||||
val = toNumber(val,this.options);
|
||||
}
|
||||
return val;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user