mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-04-26 01:07:52 +08:00
Compare commits
2 Commits
48d94f7b48
...
fc9d7cb4d8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc9d7cb4d8 | ||
|
|
24f28090e0 |
@@ -94,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<set>
|
<set>
|
||||||
<if test="columnComment != null">column_comment = #{columnComment},</if>
|
<if test="columnComment != null">column_comment = #{columnComment},</if>
|
||||||
<if test="javaType != null">java_type = #{javaType},</if>
|
<if test="javaType != null">java_type = #{javaType},</if>
|
||||||
|
<if test="columnType != null">column_type = #{columnType},</if>
|
||||||
<if test="javaField != null">java_field = #{javaField},</if>
|
<if test="javaField != null">java_field = #{javaField},</if>
|
||||||
<if test="isInsert != null">is_insert = #{isInsert},</if>
|
<if test="isInsert != null">is_insert = #{isInsert},</if>
|
||||||
<if test="isEdit != null">is_edit = #{isEdit},</if>
|
<if test="isEdit != null">is_edit = #{isEdit},</if>
|
||||||
|
|||||||
@@ -5,7 +5,12 @@
|
|||||||
* @returns {Boolean}
|
* @returns {Boolean}
|
||||||
*/
|
*/
|
||||||
export function isPathMatch(pattern, path) {
|
export function isPathMatch(pattern, path) {
|
||||||
const regexPattern = pattern.replace(/\//g, '\\/').replace(/\*\*/g, '.*').replace(/\*/g, '[^\\/]*')
|
const regexPattern = pattern
|
||||||
|
.replace(/([.+^${}()|\[\]\\])/g, '\\$1')
|
||||||
|
.replace(/\*\*/g, '__DOUBLE_STAR__')
|
||||||
|
.replace(/\*/g, '[^/]*')
|
||||||
|
.replace(/__DOUBLE_STAR__/g, '.*')
|
||||||
|
.replace(/\?/g, '[^/]')
|
||||||
const regex = new RegExp(`^${regexPattern}$`)
|
const regex = new RegExp(`^${regexPattern}$`)
|
||||||
return regex.test(path)
|
return regex.test(path)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user