haydenzhourepo opened a new pull request #5093: URL: https://github.com/apache/incubator-dolphinscheduler/pull/5093
<!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.--> ## Purpose of the pull request `isNumeric` method can not be used to validate a Linux username. just add an `isValidLinuxUserName` method to check out if the string is a valid Linux username. a valid Linux username will match the pattern [a-z_][a-z\d_]{0,30} according to https://stackoverflow.com/questions/6949667/what-are-the-real-rules-for-linux-usernames-on-centos-6-and-rhel-6 ## Brief change log - *Add isValidLinuxUserName to check if tenant cod is valid* ## Verify this pull request This change added tests and can be verified as follows: - *Added isValidLinuxUserName test method in RegexUtils.java to verify the change.* - *Manually verified the change by testing locally.* ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
