-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: convert یکصد to number in WordsToNumber function
- Loading branch information
1 parent
132a7ed
commit 3540b48
Showing
17 changed files
with
121 additions
and
135 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -150,6 +150,7 @@ | |
|
||
this.adjective = { | ||
صد: 100, | ||
یکصد: 100, | ||
دویست: 200, | ||
سیصد: 300, | ||
چهارصد: 400, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,90 +1,90 @@ | ||
{ | ||
"name": "persian-tools", | ||
"version": "0.0.2", | ||
"description": "An anthology of a variety of tools for Persian language in javascript", | ||
"main": "dist/index.min.js", | ||
"scripts": { | ||
"test": "jest", | ||
"lint": "eslint src test scripts", | ||
"lint:fix": "npm run lint -- --fix", | ||
"build": "node scripts/build.js", | ||
"build:esm": "rollup -c scripts/rollup.config.esm.js", | ||
"build:umd": "rollup -c scripts/rollup.config.umd.js", | ||
"build:modules": "rollup -c scripts/rollup.config.modules.js", | ||
"watch": "rollup -c scripts/rollup.config.umd.js --watch", | ||
"release": "npm run build && npm run test && standard-version" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ali-master/persian-tools.git" | ||
}, | ||
"files": [ | ||
"src", | ||
"dist" | ||
], | ||
"keywords": [ | ||
"persian tools", | ||
"number to persian words", | ||
"persian words to number", | ||
"Arabic numbers to Persian", | ||
"Arabic numbers to English", | ||
"English numbers to Persian", | ||
"Persian numbers to English", | ||
"verify iranian national id", | ||
"verify iranian card-number" | ||
], | ||
"author": "Ali Torki <[email protected]>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ali-master/persian-tools/issues" | ||
}, | ||
"homepage": "https://github.com/ali-master/persian-tools#readme", | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^8.2.3", | ||
"babel-jest": "^23.0.1", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.7.0", | ||
"chalk": "^2.4.1", | ||
"eslint": "^4.19.1", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-friendly-formatter": "^4.0.1", | ||
"eslint-plugin-import": "^2.12.0", | ||
"eslint-plugin-node": "^6.0.1", | ||
"eslint-plugin-prettier": "^2.6.0", | ||
"eslint-plugin-promise": "^3.8.0", | ||
"eslint-plugin-security": "^1.4.0", | ||
"eslint-plugin-standard": "^3.1.0", | ||
"globby": "^8.0.1", | ||
"jest-cli": "^23.1.0", | ||
"prettier": "^1.13.5", | ||
"prettier-eslint": "^8.8.1", | ||
"rollup": "^0.60.7", | ||
"rollup-plugin-babel": "^3.0.4", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
"rollup-plugin-json": "^3.0.0", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-progress": "^0.4.0", | ||
"rollup-plugin-uglify": "^4.0.0", | ||
"shelljs": "^0.8.2", | ||
"standard-version": "^4.4.0", | ||
"uglify-es": "^3.3.9" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.js$": "babel-jest" | ||
}, | ||
"testEnvironment": "node", | ||
"modulePathIgnorePatterns": [ | ||
"dist/.*", | ||
"src/.*" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/dist/", | ||
"/src/" | ||
] | ||
}, | ||
"dependencies": {} | ||
"name": "persian-tools", | ||
"version": "0.0.2", | ||
"description": "An anthology of a variety of tools for Persian language in javascript", | ||
"main": "dist/persian-tools.umd.min.js", | ||
"scripts": { | ||
"test": "jest", | ||
"lint": "eslint src test scripts", | ||
"lint:fix": "npm run lint -- --fix", | ||
"build": "node scripts/build.js", | ||
"build:esm": "rollup -c scripts/rollup.config.esm.js", | ||
"build:umd": "rollup -c scripts/rollup.config.umd.js", | ||
"build:modules": "rollup -c scripts/rollup.config.modules.js", | ||
"watch": "rollup -c scripts/rollup.config.umd.js --watch", | ||
"release": "npm run build && npm run test && standard-version" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ali-master/persian-tools.git" | ||
}, | ||
"files": [ | ||
"src", | ||
"dist" | ||
], | ||
"keywords": [ | ||
"persian tools", | ||
"number to persian words", | ||
"persian words to number", | ||
"Arabic numbers to Persian", | ||
"Arabic numbers to English", | ||
"English numbers to Persian", | ||
"Persian numbers to English", | ||
"verify iranian national id", | ||
"verify iranian card-number" | ||
], | ||
"author": "Ali Torki <[email protected]>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ali-master/persian-tools/issues" | ||
}, | ||
"homepage": "https://github.com/ali-master/persian-tools#readme", | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^8.2.3", | ||
"babel-jest": "^23.0.1", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.7.0", | ||
"chalk": "^2.4.1", | ||
"eslint": "^4.19.1", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-friendly-formatter": "^4.0.1", | ||
"eslint-plugin-import": "^2.12.0", | ||
"eslint-plugin-node": "^6.0.1", | ||
"eslint-plugin-prettier": "^2.6.0", | ||
"eslint-plugin-promise": "^3.8.0", | ||
"eslint-plugin-security": "^1.4.0", | ||
"eslint-plugin-standard": "^3.1.0", | ||
"globby": "^8.0.1", | ||
"jest-cli": "^23.1.0", | ||
"prettier": "^1.13.5", | ||
"prettier-eslint": "^8.8.1", | ||
"rollup": "^0.60.7", | ||
"rollup-plugin-babel": "^3.0.4", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
"rollup-plugin-json": "^3.0.0", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-progress": "^0.4.0", | ||
"rollup-plugin-uglify": "^4.0.0", | ||
"shelljs": "^0.8.2", | ||
"standard-version": "^4.4.0", | ||
"uglify-es": "^3.3.9" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.js$": "babel-jest" | ||
}, | ||
"testEnvironment": "node", | ||
"modulePathIgnorePatterns": [ | ||
"dist/.*", | ||
"src/.*" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/dist/", | ||
"/src/" | ||
] | ||
}, | ||
"dependencies": {} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import path from "path"; | ||
import config, { dist } from "./rollup.config"; | ||
import config, { dist, name } from "./rollup.config"; | ||
|
||
export default config({ | ||
output: { | ||
format: "es", | ||
sourcemap: true, | ||
file: path.resolve(dist, "index.esm.js") | ||
file: path.resolve(dist, name + ".esm.js") | ||
} | ||
}); |
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