mirror of
				https://codeberg.org/tom79/Fedilab.git
				synced 2025-10-20 11:20:16 +03:00 
			
		
		
		
	UNICODE_CASE for regex
This commit is contained in:
		
							parent
							
								
									55098c50f1
								
							
						
					
					
						commit
						02a9e26f2c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -213,7 +213,7 @@ public class SpannableHelper { | |||
| 
 | ||||
|                 String sb = Pattern.compile("\\A[\\p{L}0-9_]").matcher(markdownItem.code.trim()).find() ? "\\b" : ""; | ||||
|                 String eb = Pattern.compile("[\\p{L}0-9_]\\z").matcher(markdownItem.code.trim()).find() ? "\\b" : "\\B"; | ||||
|                 Pattern p = Pattern.compile(sb + "(" + Pattern.quote(markdownItem.code.trim()) + ")" + eb); | ||||
|                 Pattern p = Pattern.compile(sb + "(" + Pattern.quote(markdownItem.code.trim()) + ")" + eb, Pattern.UNICODE_CASE); | ||||
|                 Matcher m = p.matcher(content); | ||||
|                 int fetchPosition = 1; | ||||
|                 while (m.find()) { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue