check-ends-with-period
Check the text is ends with period mark.
Install
Install with npm:
npm install check-ends-with-period
Usage
const checkEndsWithPeriod = function(lineText, {
periodMarks = ["。", "."],
allowExceptionMark = true,
allowEmoji = false,
} = {}) {
}
Example
const checkEndsWithPeriod = require("check-ends-with-period");
checkEndsWithPeriod("text.", {
periodMarks: ["."]
});
checkEndsWithPeriod("text");
checkEndsWithPeriod("text ");
checkEndsWithPeriod("text❌", {
allowEmoji: true
});
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm i -d && npm test
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT © azu