Skip to content

变体维度拆分正则缺陷 #80

Description

@guozhiqiang123

这样的变体维度Pr0205BillingremovedDebug 被拆成 ["pr0205billingremoved", "debug"](缺少 billingremoved)。导致执行moveDir的时候,billingremoved目录下的源码不会被移动。
StringUtil下的splitWords方法改一下就好了:
internal fun String.splitWords(): List<String> { val regex = Regex("(?<=[a-z0-9])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])") return split(regex).map { it.lowercase() } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions