Skip to content

Commit 8981434

Browse files
author
ortis
committed
readme update
1 parent 9634e39 commit 8981434

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![GitHub license](https://img.shields.io/github/license/0rtis/jsafebox.svg?style=flat-square)](https://github.com/0rtis/jsafebox/blob/master/LICENSE)
33
[![Build Status](https://img.shields.io/travis/0rtis/jsafebox.svg?style=flat-square)](https://travis-ci.org/0rtis/jsafebox)
44
[![codecov](https://img.shields.io/codecov/c/github/0rtis/jsafebox.svg?style=flat-square)](https://codecov.io/gh/0rtis/jsafebox)
5-
5+
[![Follow @Ortis95](https://img.shields.io/twitter/follow/Ortis95.svg?style=flat-square)](https://twitter.com/intent/follow?screen_name=Ortis95)
66

77
```
88
_.---.._

src/main/java/org/ortis/jsafebox/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public class Utils
4949

5050
public final static String SEPARATOR_REGEX = "[/|" + Pattern.quote(java.io.File.separator) + "]";
5151

52+
private final static String SYSTEM_PATH_DELIMITER_REGEX = Pattern.quote(File.separator) + "|" + Pattern.quote("/") + "|" + Pattern.quote("\\");
53+
5254
public static byte [] passwordToBytes(final char [] chars)
5355
{
5456
final CharBuffer charBuffer = CharBuffer.wrap(chars);
@@ -110,8 +112,6 @@ public static Safe open(final String safeFilePath, final char [] password, final
110112
return new Safe(file, cipher, keySpec, iv, bufferSize);
111113
}
112114

113-
private final static String SYSTEM_PATH_DELIMITER_REGEX = Pattern.quote(File.separator) + "|" + Pattern.quote("/") + "|" + Pattern.quote("\\");
114-
115115
public static List<java.io.File> parseSystemPath(String query, final List<java.io.File> destination) throws IOException
116116
{
117117
final String [] tokens = query.split(SYSTEM_PATH_DELIMITER_REGEX);

0 commit comments

Comments
 (0)