Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
QuasselDroid-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
QuasselDroid-ng
Commits
6010a1ec
Commit
6010a1ec
authored
6 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Disable Ignore/Highlight rules that have invalid patterns
parent
ec53a966
No related branches found
No related tags found
No related merge requests found
Pipeline
#308
failed
6 years ago
Stage: build
Stage: deploy-local
Stage: deploy-beta
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/src/main/java/de/kuschku/libquassel/util/ExpressionMatch.kt
+5
-1
5 additions, 1 deletion
...c/main/java/de/kuschku/libquassel/util/ExpressionMatch.kt
with
5 additions
and
1 deletion
lib/src/main/java/de/kuschku/libquassel/util/ExpressionMatch.kt
+
5
−
1
View file @
6010a1ec
...
@@ -3,6 +3,7 @@ package de.kuschku.libquassel.util
...
@@ -3,6 +3,7 @@ package de.kuschku.libquassel.util
import
de.kuschku.libquassel.util.compatibility.LoggingHandler.Companion.log
import
de.kuschku.libquassel.util.compatibility.LoggingHandler.Companion.log
import
de.kuschku.libquassel.util.compatibility.LoggingHandler.LogLevel
import
de.kuschku.libquassel.util.compatibility.LoggingHandler.LogLevel
import
java.io.Serializable
import
java.io.Serializable
import
java.util.regex.PatternSyntaxException
class
ExpressionMatch
:
Serializable
{
class
ExpressionMatch
:
Serializable
{
enum
class
MatchMode
{
enum
class
MatchMode
{
...
@@ -638,9 +639,12 @@ class ExpressionMatch : Serializable {
...
@@ -638,9 +639,12 @@ class ExpressionMatch : Serializable {
* @param caseSensitive If true, match case-sensitively, otherwise ignore case when matching
* @param caseSensitive If true, match case-sensitively, otherwise ignore case when matching
* @return Configured QRegularExpression
* @return Configured QRegularExpression
*/
*/
private
fun
regExFactory
(
regExString
:
String
,
caseSensitive
:
Boolean
)
=
private
fun
regExFactory
(
regExString
:
String
,
caseSensitive
:
Boolean
)
=
try
{
if
(
caseSensitive
)
Regex
(
regExString
)
if
(
caseSensitive
)
Regex
(
regExString
)
else
Regex
(
regExString
,
RegexOption
.
IGNORE_CASE
)
else
Regex
(
regExString
,
RegexOption
.
IGNORE_CASE
)
}
catch
(
e
:
PatternSyntaxException
)
{
null
}
/**
/**
* Escapes any regular expression characters in a string so they have no special meaning
* Escapes any regular expression characters in a string so they have no special meaning
...
...
This diff is collapsed.
Click to expand it.
Shane Synan
@digitalcircuit
mentioned in issue
#170 (closed)
·
6 years ago
mentioned in issue
#170 (closed)
mentioned in issue #170
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment