• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • utils
  • string-process.js
  • 逛rss订阅功能开发完成
    52acf3ca
    by 陈峰
    2016-09-13 17:33:38 +0800  
    Browse Files
string-process.js 240 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/**
 * 字符串处理
 */

'use strict';

/**
 * [判断数字]
 * @param  {[string]} str [验证参数]
 * @return {[Boolean]}
 */
const isNumeric = (str) => {
    return /^\d+(\.\d+)?$/.test(str);
};

module.exports = {
    isNumeric
};